package com.foreverwin.jzymes.common.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import java.util.Date;
import java.util.Date;
import java.util.Date;

/**
 * SFC批次过站表 Z_SFC_BATCH_PASS_LOG
 * 
 * @author ervin
 * @date 2019-03-21
 */
public class SfcBatchPassLog
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private String handle;
	/** 站点 */
	private String site;
	/** 机种 */
	private String machineType;
	/** 工令 */
	private String sfc;
	/** 物料 */
	private String itemBo;
	/** 操作 */
	private String operation;
	/** 资源 */
	private String resrce;
	/** 数量 */
	private Long qty;
	/** 状态(O(OPEN),P（PENDING）,C(CLOSE)) */
	private String status;
	/** 重试次数 */
	private Long retries;
	/** 错误信息 */
	private String errorMsg;
	/** 创建日期 */
	private Date createdDateTime;
	/** 修改日期 */
	private Date updatedDateTime;
	/** 开始日期 */
	private Date startDateTime;
	/** 结束日期 */
	private Date endDateTime;

	public void setHandle(String handle) 
	{
		this.handle = handle;
	}

	public String getHandle() 
	{
		return handle;
	}
	public void setSite(String site) 
	{
		this.site = site;
	}

	public String getSite() 
	{
		return site;
	}
	public void setMachineType(String machineType) 
	{
		this.machineType = machineType;
	}

	public String getMachineType() 
	{
		return machineType;
	}
	public void setSfc(String sfc) 
	{
		this.sfc = sfc;
	}

	public String getSfc() 
	{
		return sfc;
	}
	public void setItemBo(String itemBo) 
	{
		this.itemBo = itemBo;
	}

	public String getItemBo() 
	{
		return itemBo;
	}
	public void setOperation(String operation) 
	{
		this.operation = operation;
	}

	public String getOperation() 
	{
		return operation;
	}
	public void setResrce(String resrce) 
	{
		this.resrce = resrce;
	}

	public String getResrce() 
	{
		return resrce;
	}
	public void setQty(Long qty) 
	{
		this.qty = qty;
	}

	public Long getQty() 
	{
		return qty;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}
	public void setRetries(Long retries) 
	{
		this.retries = retries;
	}

	public Long getRetries() 
	{
		return retries;
	}
	public void setErrorMsg(String errorMsg) 
	{
		this.errorMsg = errorMsg;
	}

	public String getErrorMsg() 
	{
		return errorMsg;
	}
	public void setCreatedDateTime(Date createdDateTime) 
	{
		this.createdDateTime = createdDateTime;
	}

	public Date getCreatedDateTime() 
	{
		return createdDateTime;
	}
	public void setUpdatedDateTime(Date updatedDateTime) 
	{
		this.updatedDateTime = updatedDateTime;
	}

	public Date getUpdatedDateTime() 
	{
		return updatedDateTime;
	}
	public void setStartDateTime(Date startDateTime) 
	{
		this.startDateTime = startDateTime;
	}

	public Date getStartDateTime() 
	{
		return startDateTime;
	}
	public void setEndDateTime(Date endDateTime) 
	{
		this.endDateTime = endDateTime;
	}

	public Date getEndDateTime() 
	{
		return endDateTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("handle", getHandle())
            .append("site", getSite())
            .append("machineType", getMachineType())
            .append("sfc", getSfc())
            .append("itemBo", getItemBo())
            .append("operation", getOperation())
            .append("resrce", getResrce())
            .append("qty", getQty())
            .append("status", getStatus())
            .append("retries", getRetries())
            .append("errorMsg", getErrorMsg())
            .append("createdDateTime", getCreatedDateTime())
            .append("updatedDateTime", getUpdatedDateTime())
            .append("startDateTime", getStartDateTime())
            .append("endDateTime", getEndDateTime())
            .toString();
    }
}
